<?php

namespace app\api\model;

use think\Model;

class RechargeConfig extends Model
{
    // 表名
    protected $name = 'hk_recharge_config';
    protected $resultSetType = 'collection';

    public static function getList($map = [])
    {
        $data = self::where($map)
            ->order('pay_money')
            ->select();
        $res['data'] = empty($data)? [] :$data->toArray();
        return $res;
    }
}
